import requests

if __name__ == "__main__":
    url = "http://unsplash.com/napi/feeds/home"
    headers = {
    'authority': 'developer.mozilla.org',
    'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
    'accept-language': 'zh-CN,zh;q=0.9',
    'cache-control': 'max-age=0',
    'if-modified-since': 'Mon, 01 Jan 2024 01:39:55 GMT',
    'if-none-match': 'W/"918634a4ef0ed92c43fa7a08593e3df5"',
    'sec-ch-ua': '"Not_A Brand";v="8", "Chromium";v="120", "Google Chrome";v="120"',
    'sec-ch-ua-mobile': '?0',
    'sec-ch-ua-platform': '"Windows"',
    'sec-fetch-dest': 'document',
    'sec-fetch-mode': 'navigate',
    'sec-fetch-site': 'same-origin',
    'sec-fetch-user': '?1',
    'upgrade-insecure-requests': '1',
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36'
    }
    # download=https://unsplash.com/photos/mbcuxJhM9SM/download?ixid=M3wxMjA3fDB8MXxhbGx8fHx8fHx8fHwxNzA0MzQ2NzcxfA
    req = requests.get(url, headers=headers, verify=False)
    print(req.text)